﻿using System.Diagnostics;
using System.Web.Mvc;

namespace ZQNB.Web
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            ////异常处理
            //filters.Add(new NbExceptionHandlerAttribute());

            ////性能追踪
            //filters.Add(new PerformanceTraceFilterAttribute());
            
            //////用户追踪
            ////filters.Add(new SimplestSessionSumFilter());
            ////filters.Add(new OnlineTraceFilter());

            ////部署模式的验证 Cloud,Portal,CloudAndPortal
            //filters.Add(new DeployModeValidateAttribute());

            //filters.Add(new MenuFilter());
            ////用户行为追踪 //缓存当前请求的数据，供上下文共享 //todo...
            ////filters.Add(nbContextCollectorAttribute);

            //////License授权
            ////filters.Add(new LicenseControlAttribute());
            
            //////Menu
            ////filters.Add(new NbMenuContextAttribute());
            ////防止缓存 
            ////环境限制 未测试
            //filters.Add(new NoCacheFilter());
        }
    }
}